#!usr/bin/env python3
# -*- coding: utf-8 -*-

from . import api as apiBP
from .authentication import auth
from ..models import User
from flask import jsonify,abort,g

@apiBP.route("/user/<int:id>")
def get_user(id):
	u = User.query.get_or_404(id)
	return jsonify({"user":u.to_json()})


